import request from '@/utils/request'

// 查询历史记录列表
export function listHistories(query) {
  return request({
    url: '/users/histories/list',
    method: 'get',
    params: query
  })
}

// 查询历史记录详细
export function getHistories(id) {
  return request({
    url: '/users/histories/' + id,
    method: 'get'
  })
}

// 新增历史记录
export function addHistories(data) {
  return request({
    url: '/users/histories',
    method: 'post',
    data: data
  })
}

// 修改历史记录
export function updateHistories(data) {
  return request({
    url: '/users/histories',
    method: 'put',
    data: data
  })
}

// 删除历史记录
export function delHistories(id) {
  return request({
    url: '/users/histories/' + id,
    method: 'delete'
  })
}
